package com.yan.service;

import com.yan.pojo.Student;
import com.yan.pojo.Teacher;

import java.util.List;

public interface TeacherService {

    List<Teacher> getTeacherList();

    // 老师查看自己班的学生
    List<Student> studentByTeacher(Integer teacherId);

    public boolean updateStudent01(Student student);

    public boolean addStudent(Student student);

    public Teacher getTeacherById(Integer teacherId);

    public boolean addStudentByTeacher(Student student);

    public boolean delStudentByStudentId(Integer studentId);

    public boolean updateTeacherPassword(Teacher teacher);

    //模糊查询
    List<Student> findStudent(String keyWords);

    public boolean addStuToTeacher(Integer studentId, Integer teacherId);

    public Integer isAbleToTeacher(Integer studentId, Integer teacherId);

    public boolean removeClass(Integer studentId);

    public Teacher getTeacherByName(String name);

}
